﻿using System;
using System.Collections.Generic;
using System.Linq;

using Sumen.Model.Model;

namespace Sumen.Business.Presenter.Category
{
    public class ColorPresenter
    {
       

        public ICollection<product_color> GetAll()
        {
            using (sumenEntities objEntities = new sumenEntities())
            {
                if (ClsPublic.SYSTEM_DISPLAY_ACTIVED == "1")
                    return objEntities.product_color.ToList();
                else
                    return objEntities.product_color.Where(p => p.Color_Actived == 1).ToList();
            }
        }


     



    }
}
